package com.chen.service.serviceimpl;

import com.chen.dao.RepairDao;
import com.chen.pojo.Repair;
import com.chen.pojo.RepairInfo;
import com.chen.pojo.TeacherShowRepair;
import com.chen.service.RepairService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class RepairServiceImpl implements RepairService{
    @Autowired
    RepairDao repairDao;

    @Override
    public List<RepairInfo> getRepairList(Repair repair) {
        return repairDao.getRepairList(repair);
    }

    @Override
    public void addRepair(Repair repair) {
        repairDao.addRepair(repair);
    }

    @Override
    public void updateReapir(Repair repair) {
        repairDao.updateReapir(repair);
    }

    @Override
    public List<TeacherShowRepair> getTeacherRepairList(Repair repair) {
        return repairDao.getTeacherRepairList(repair);
    }
}
